// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   Res_MenuNavDTO.java

package com.hfstu.ifs.dto;

import com.hfstu.ifs.model.*;
import java.lang.reflect.InvocationTargetException;
import org.apache.commons.beanutils.BeanUtils;

public class Res_MenuNavDTO
	implements Cloneable
{

	private String id;
	private String parentId;
	private String showNavName;
	private String navControlId;
	private String navControlName;
	private String navControlType;
	private String menuId;
	private String menuName;
	private String nodeType;
	private boolean checked;

	public Res_MenuNavDTO()
	{
		nodeType = "menuNav";
		checked = false;
	}

	public boolean isChecked()
	{
		return checked;
	}

	public void setChecked(boolean checked)
	{
		this.checked = checked;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getShowNavName()
	{
		return showNavName;
	}

	public void setShowNavName(String showNavName)
	{
		this.showNavName = showNavName;
	}

	public String getNavControlId()
	{
		return navControlId;
	}

	public void setNavControlId(String navControlId)
	{
		this.navControlId = navControlId;
	}

	public String getNavControlName()
	{
		return navControlName;
	}

	public void setNavControlName(String navControlName)
	{
		this.navControlName = navControlName;
	}

	public String getNodeType()
	{
		return nodeType;
	}

	public void setNodeType(String nodeType)
	{
		this.nodeType = nodeType;
	}

	public String getParentId()
	{
		return parentId;
	}

	public void setParentId(String parentId)
	{
		this.parentId = parentId;
	}

	public String getNavControlType()
	{
		return navControlType;
	}

	public void setNavControlType(String navControlType)
	{
		this.navControlType = navControlType;
	}

	public String getMenuId()
	{
		return menuId;
	}

	public void setMenuId(String menuId)
	{
		this.menuId = menuId;
	}

	public String getMenuName()
	{
		return menuName;
	}

	public void setMenuName(String menuName)
	{
		this.menuName = menuName;
	}

	public Res_MenuNavDTO transfer(MenuBindNav menuBindNav)
	{
		try
		{
			BeanUtils.copyProperties(this, menuBindNav);
		}
		catch (IllegalAccessException e)
		{
			e.printStackTrace();
		}
		catch (InvocationTargetException e)
		{
			e.printStackTrace();
		}
		if (menuBindNav.getNavControl() != null)
		{
			setNavControlId(menuBindNav.getNavControl().getId());
			setNavControlName(menuBindNav.getNavControl().getName());
			setNavControlType(menuBindNav.getNavControl().getNavControlType());
		}
		if (menuBindNav.getMenu() != null)
		{
			setMenuId(menuBindNav.getMenu().getId());
			setMenuName(menuBindNav.getMenu().getName());
		}
		return this;
	}

	public Object clone()
	{
		Res_MenuNavDTO o = null;
		try
		{
			o = (Res_MenuNavDTO)super.clone();
		}
		catch (CloneNotSupportedException e)
		{
			e.printStackTrace();
		}
		return o;
	}
}
